<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyRegisterControl.ascx.cs" Inherits="MusicmanWeb.Custom.MyRegisterControl" Debug="true"  ClassName="MyRegisterControl"%>
<asp:Panel ID="Panel1" runat="server">
    <table width="100%">
        <tr>
            <td style="width: 67px">
                <asp:Label ID="Label1" runat="server" Text="First name " Width="110px"></asp:Label></td>
            <td style="width: 49px">
                <asp:TextBox ID="FirstNameTxt" runat="server"></asp:TextBox></td>
            <td style="width: 88px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="FirstNameTxt">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 67px">
                <asp:Label ID="Label2" runat="server" Text="Last name"></asp:Label></td>
            <td style="width: 49px">
                <asp:TextBox ID="LastNameTxt" runat="server"></asp:TextBox></td>
            <td style="width: 88px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="LastNameTxt">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 67px">
                <asp:Label ID="Label3" runat="server" Text="Email"></asp:Label></td>
            <td style="width: 49px">
                <asp:TextBox ID="EmailTxt" runat="server"></asp:TextBox></td>
            <td style="width: 88px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="EmailTxt">*</asp:RequiredFieldValidator></td>
            
        </tr>
        <tr>
            <td style="width: 67px">
                <asp:Label ID="Label4" runat="server" Text="Password"></asp:Label></td>
            <td style="width: 49px">
                <asp:TextBox ID="PasswordTxt" runat="server" TextMode="Password"></asp:TextBox></td>
            <td style="width: 88px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="PasswordTxt"
                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 67px; height: 18px;">
                <asp:Label ID="Label5" runat="server" Text="Confirm password"></asp:Label></td>
            <td style="width: 49px; height: 18px;">
                <asp:TextBox ID="CPasswordTxt" runat="server" TextMode="Password"></asp:TextBox></td>
            <td style="width: 88px; height: 18px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="CPasswordTxt"
                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 67px; height: 18px">
                <asp:Label ID="Label6" runat="server" Text="Request email"></asp:Label></td>
            <td style="width: 49px; height: 18px">
                <asp:CheckBox ID="RQEmalCb" runat="server" /></td>
            <td style="width: 88px; height: 18px">
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 18px">
                &nbsp;<br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="PasswordTxt"
                    ControlToValidate="CPasswordTxt" ErrorMessage="pasword and confirm passwowrd values are not equal"></asp:CompareValidator>
                <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="EmailTxt"
                    ErrorMessage="User with the following e-mail already exist" OnServerValidate="Check_Email"></asp:CustomValidator><br />
                <br />
                <asp:ImageButton id="ImageButton1" runat="server" CssClass="button" SkinID="create" OnClick="Button1_Click"/></td>
        </tr>
    </table>
    &nbsp;</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Visible="False">
    <asp:Label ID="Label7" runat="server" Text="Your request has been accepted. The registration email will be send to you, to activate your account."
        Width="296px"></asp:Label>
    <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default.aspx">Continue</asp:LinkButton></asp:Panel>
